// components/nav-header/nav-header.js
import {storeBindingsBehavior} from "mobx-miniprogram-bindings"
import {store} from "../../store/store"
Component({
  properties: {},
  data: {
    keyWords:"",
    isIndexPage:"",
  },
  behaviors:[storeBindingsBehavior],
  storeBindings:{
    store,
    fields:{
      section:"section",
      activePage:"activePage"
    },
    actions:{
      updateShowSection:"updateShowSection"
    },
  },
  methods: {
    showPopup() {
      this.updateShowSection(true);
    },
    inputHandler(e){
      this.setData({
        keyWords:e.detail.value
      })
    }
  },

})
